package com.uduemc.biso.module.basic.service.service;

import java.util.List;

import org.springframework.data.domain.Pageable;

import com.uduemc.biso.core.extities.center.Host;

public interface HostService {

	Host insert(Host host);

	Host updateById(Host host);
	
	Host insertSelective(Host host);

	Host updateByIdSelective(Host host);

	Host findOne(Long id);

	List<Host> findAll(Pageable pageable);

	void deleteById(Long id);

	List<Host> findByUserId(long userId);

	List<Host> findByUserId(Long userId, Short status);

	List<Host> findByUserId(Long userId, Short status, Integer page);

	List<Host> findByUserId(Long userId, Short status, Integer pageSize, Integer page);

	// 通过 randomCode 查询数据
	Host findByRandomCode(String randomCode);

	// 生成一个可用的 randomCode
	String getCreateRandomCode(long userId);
}
